package com.fypg.medicalplatform.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * 卫健后台管理系统的启动类
 *
 * @author 盘古
 */

@SuppressWarnings("SpringComponentScan") // 忽略 IDEA 无法识别 ${fypg.info.base-package}
@SpringBootApplication
@ComponentScan(basePackages = {"${fypg.info.base-package}.server", "${fypg.info.base-package}.module"}
    , excludeFilters = @ComponentScan.Filter(type = FilterType.REGEX, pattern = ".*\\.controller\\.app\\..*")
)
@EnableDiscoveryClient
public class FypgMedicalPlatformAdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(FypgMedicalPlatformAdminApplication.class, args);
        //        new SpringApplicationBuilder(FypgMedicalPlatformApplication.class)
        //                .applicationStartup(new BufferingApplicationStartup(20480))
        //                .run(args);
    }

}
